package com.coder4j.starter.generator.vo;

import lombok.Data;

/**
 * 参数
 */
@Data
public class TableParams {
    /**
     * 模板路径
     */
    private String templatePath;
    /**
     * Java代码保存路径
     */
    private String javaPath;

    /**
     * vue代码保存路径
     */
    private String vuePath;

    /**
     * 作者
     */
    private String author;

    /**
     * 要操作的数据表
     */
    private String[] tableNames;


    public TableParams(String templatePath,String javaPath, String vuePath,String author) {
        this.templatePath = templatePath;
        this.javaPath = javaPath;
        this.vuePath = vuePath;
        this.author = author;
    }

    public void initTables(String ... tableNames){
        this.tableNames = tableNames;
    }
}
